/* 
 * $Id$
 *
 * UMKC Robotics 2009
**/

#ifndef ERR_H
#define ERR_H


/* general errors that could occur anywhere in
 * the code are in the range 0-20.  errors
 * for individual modules are #define'd within
 * the various other header files.
 *
 * WARNING - make sure you don't overlap in
 * your error codes else you might expect
 * to see one error (or condition) and you
 * could get another. */
#define E_NO_ERROR 0
#define E_IDX_OOB 1
#define E_INVALID_ARG 2
#define E_NULL_CALLBACK 3
#define E_INSTALL_CALLBACK 4


/* need to link with the io stuff */
#define eprintf(fmt, ...) \
        bioctl.writef(Bstderr, fmt, ##__VA_ARGS__)


#endif
